/* Copyright Tvb Network (Pty) Ltd. All rights reserved 2025 */
/* instore_header.css */

/* Header */
.header {
    display: flex;
    align-items: center;
    #background-color: #28a745;
    /* background-color: #fff; */
    padding: 0.75rem 1rem;
    color: #121212;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
	background: url("../UIView/InStore Icon/gr894894.png");
	background-size: cover;
}

.ui-app_header{
	display:flex;
}

/* App Logo */
.app-logo {
	padding-left:16px;
	padding-right:16px;
	padding-top:5px;
	padding-bottom:5px;
	border-radius:30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
	background-color:#f1f1f1;
	border:1px solid #006600;
}

.app-icon {
    width: 30px;
    height: 30px;
	margin-right:5px;
}

.app-title {
    font-size: 16pt;
    font-weight: bold;
	color:#4a4a4a;
	margin-top:0px;
}





/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.cart-actions{
	position:fixed;
	bottom:30px;
	right:20px;
	background-color:green;
	display: flex;
    align-items: center;
	padding:6px;
	max-width:250px;
	border-radius:30px;
	z-index:2;
	box-shadow: 0 20px 70px rgba(0,0,0,0.42);
	color:#fff;
	cursor:pointer;
}






/* Store and Address Container */
.store-address-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 250px;
	display:none;
}

.selected-store, .user-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.5rem;
    border-radius: 20px;
    cursor: pointer;
    flex: 1;
	background-color: #00000080;
    backdrop-filter: blur(30px);
}

.address-icon {
    width: 30px;
    height: 30px;
	vertical-align:center;
	filter:invert(1);
}
.address-icon-2{
	width: 25px;
    height: 25px;
}
.store-icon, .address-icon {
    width: 26px;
    height: 26px;
	vertical-align:center;
	filter:invert(1);
}

.StoreViewName, .address-text {
    font-size: 12pt;
    white-space: nowrap;
    overflow: hidden;
	margin-top:5px;
    text-overflow: ellipsis;
	color:#fff;
	max-width: 250px;
}

.add-address-btn {
    border: none;
    padding: 3px;
    border-radius: 14px;
    cursor: pointer;
	margin-left: auto;
}


/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f1f1f1;
    padding: 16px;
    border-radius: 30px;
    flex: 2;
    min-width: 200px;
    position: relative;
}

.search-icon {
    width: 26px;
    height: 26px;
	filter: invert(1);
}

.search-input {
    border: none;
    flex: 1;
    font-size: 0.9rem;
    color: #333;
	outline:none;
	background-color:inherit;
	margin-left: 40px;
}

.search-input::placeholder {
    color: #6c757d;
	outline:none;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
}

.clear-search-btn:hover {
    color: #333;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 180px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-suggestions div {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-suggestions div:hover {
    background-color: #f1f3f5;
}

/* Login Section */
.login-section {
    display: flex;
    align-items: center;
	padding:10px;
	padding-top:5px;
	padding-bottom:5px;
	border-radius:10px;
	cursor:pointer;
	color:#fff;
	min-width:100px;
	background-color:green;
}

.login-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-icon {
    width: 30px;
    height: 30px;
	filter:invert(1);
	padding-right:10px;
}

/* Responsive */
@media (max-width: 768px) {
	.store-icon, .address-icon {
		filter:invert(1);
	}
	
	.us-name-sec{
		display:none;
        width: 50px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
		font-size:8pt;
	}
	
	.cart-actions {
		padding:0px;
		bottom:20px;
	}
	.store-icon {
        width: 100%;
        height: auto;
        border-radius: 0%;
        display: block;
        filter: unset;
		margin-top: 60px;
    }
	
	/* App Logo */
	.app-logo {
		margin-left:0px;
	}
	
	.app-icon{
		width: 26px;
		height: 26px;
		margin-right:2px;
		
	}
	
	/* Header Actions */
	.header-actions {
		position: absolute;
		right: 130px;
		top: 15px;
	}

	
	.app-title {
		font-size: 12pt;
	}
	
	.ui-app_header{
		display:flex;
		padding:8px;
		background-color: #00000080;
		backdrop-filter: blur(30px);
		position: fixed;
        top: 0px;
        width: 100%;
		z-index: 4;
	}
	
    .header {
        flex-direction: column;
        align-items: stretch;
        margin: 0px;
        padding: 0px;
    }
	
	.search-bar{
		/* display:none; */
	}
	
	
	.StoreViewName{
        font-size: 1.4rem;
        text-align: center;
        width: 100%;
        max-width: unset;
		display: block;
    }
	
	.search-icon{
		width:26px;
		height:26px;
		position:fixed;
        left: unset;
        /* right: 135px; */
        right: 95px;
        top: 27px;
        z-index: 5;
        filter: brightness(0) invert(0.9);
	}
	
    .store-address-container, .search-bar {
        width: 100%;
    }

    .store-address-container {
        flex-direction: column;
        gap: 0.5rem;
    }

	.search-input{
		margin-left:50px;
		outline:none;
	}
    .selected-store{
		display: block;
        width: 100%;
        justify-content: space-between;
	    backdrop-filter: unset;
		background-color:unset;
		padding: 0px;
        justify-content: space-between;
    }

	.user-address {
        width: 100%;
        justify-content: space-between;
		display:none;
    }

    .login-section {
		position: fixed;
		right: 45px;
		min-width: 10px;
		z-index: 4;
        top: 10px;
		background-color: unset;
        /* padding: 5px;
        border-radius: 30px;
		width: 75px;
		background-color:#00000050; */
    }
	
	.login-icon{
		padding-right:0px;
		width: 24px;
        height: 24px;
	}
    .address-text {
        font-size: 0.8rem;
    }

    .add-address-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .search-bar {
        padding: 12px;
		min-width:50px;
    }
}